<{extends file="FrontHtml.tpl.html"}>
<{block name=head}>
<link href="<{$smarty.const.WEB_PATH}>skin/css/public.css" rel="stylesheet">
<{/block}>
<{block name=content}>
<div class="container margin10">
	<div class="row" >
		<div class="span12">
		<form class="form-horizontal" id="login" name="login" method="post" action="<{$smarty.const.WEB_PATH}>my/login/login">
		    <fieldset>
		        <div id="legend" class="">
		          <legend class="">系统管理后台</legend>
		        </div>
		    	<div class="control-group">
		          <!-- Text input-->
		          <label class="control-label" for="input01">登录名：</label>
		          <div class="controls">
		          	<input id="email" name="email" type="text" required  placeholder="请输入用户名" value="<{$email_cookie}>">
		          </div>
		        </div>
		    	<div class="control-group">
		          <!-- Text input-->
		          <label class="control-label" for="input01">密码：</label>
		          <div class="controls">
		            <input placeholder="请输入密码" id="pwd" name="pwd" type="password" >
		             <label class="checkbox" style="margin-top:5px">
                            <input type="checkbox" id="autologin"   name="autologin" data-toggle="tooltip" title="记住用户名!" data-placement="bottom"> 记住我
                      </label>
		          </div>
		        </div>
		    	<div class="control-group">
		          <label class="control-label"></label>
		          <!-- Button -->
		          <div class="controls">
		            <button class="btn btn-success" name="loginAction" type="submit">登陆</button>
		          </div>
		        </div>
		         <{if $issuccess eq "2"}>
	                 <div class="alert">
	                   <button type="button" class="close" data-dismiss="alert">&times;</button>
	                   <strong>Warning!</strong> 用户或密码输入不正确,请重新输入
	                 </div>
                 <{/if}>
		    </fieldset>
		  </form>
		</div>
	</div>
</div>
<{/block}>
<{block name=body_end}>
<script type="text/javascript" src="<{$smarty.const.WEB_PATH}>js/Jquery/jquery.form.js"></script>
<script type="text/javascript" src="<{$smarty.const.WEB_PATH}>js/common/util.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	/* var str = "qwertyuioplkjhgfdsazxcvbnm",re,newstr;
	newstr = "聚聚啊灯具设计卡萨都卡";
	re =  subNewStr(str);
	alert(re); */
	//获取email的值来给定checkbox的状态
	var emailValue = $("#email").val();
	if(emailValue != ""){
		$("#autologin").attr("checked",true);
	}else{
		$("#autologin").attr("checked",false);
	}
	$('#autologin').tooltip('toggle');
});
function forgotPassword(){
	$('#myModal').modal('show');
}



</script>
<{/block}>